-- GENERATED SPELL FOR [Furywing] --


function spell0_23261(pUnit, Event) --@Bellowing Roar,Self--
pUnit:FullCastSpellOnTarget(36922,pUnit)
pUnit:RegisterEvent('Sorts_23261', 6500, 1)
end

function spell1_23261(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40505,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23261', 645, 1)
end

function spell2_23261(pUnit, Event) --@Fiery Breath,n/a--
pUnit:FullCastSpellOnTarget(40032,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23261', 552, 1)
end

function spell3_23261(pUnit, Event) --@Flame Breath,n/a--
pUnit:FullCastSpellOnTarget(9573,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23261', 2000, 1)
end

function spell4_23261(pUnit, Event) --@Tail Sweep,n/a--
pUnit:FullCastSpellOnTarget(15847,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23261', 528, 1)
end

function spell5_23261(pUnit, Event) --@Wing Buffet,Self--
pUnit:FullCastSpellOnTarget(41572,pUnit)
pUnit:RegisterEvent('Sorts_23261', 1000, 1)
end

function Sorts_23261(pUnit, Event)
local choix_sorts_23261 = math.random(0, 5)
if choix_sorts_23261 == 0 then
pUnit:RegisterEvent('spell0_23261', 1, 1)
end
if choix_sorts_23261 == 1 then
pUnit:RegisterEvent('spell1_23261', 1, 1)
end
if choix_sorts_23261 == 2 then
pUnit:RegisterEvent('spell2_23261', 1, 1)
end
if choix_sorts_23261 == 3 then
pUnit:RegisterEvent('spell3_23261', 1, 1)
end
if choix_sorts_23261 == 4 then
pUnit:RegisterEvent('spell4_23261', 1, 1)
end
if choix_sorts_23261 == 5 then
pUnit:RegisterEvent('spell5_23261', 1, 1)
end
end

function mob23261_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23261', math.random(1500, 3000), 1)
end

function mob23261_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23261_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23261_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23261, 1, 'mob23261_Action')
RegisterUnitEvent(23261, 2, 'mob23261_Leave')
RegisterUnitEvent(23261, 3, 'mob23261_Kill')
RegisterUnitEvent(23261, 4, 'mob23261_Die')
